package com.ruoyi.wms.domain.bo.partolStore;

import com.ruoyi.wms.domain.entity.partolStore.inspectionRecords;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;

import java.util.Date;

/**
 * 巡检记录业务对象 inspection_records
 *
 * @author xhr
 * @date 2024-12-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = inspectionRecords.class, reverseConvertGenerate = false)
public class inspectionRecordsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long equipmentId;

    /**
     * 巡检时间
     */
    @NotNull(message = "巡检时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date inspectionTime;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String context;

    /**
     * 巡检人
     */
    @NotBlank(message = "巡检人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectors;


}
